package com.ruoyi.ums.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户管理对象 ums_user
 * 
 * @author zouhuu
 * @date 2022-08-01
 */
public class UmsUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    /** 微信公众号客户端openid */
    @Excel(name = "微信公众号客户端openid")
    private String wxClientOpenid;

    /** 微信小程序客户端openid */
    @Excel(name = "微信小程序客户端openid")
    private String wxmClientOpenid;

    /** 微信小程序员工端openid */
    @Excel(name = "微信小程序员工端openid")
    private String wxmStaffOpenid;

    /** 微信unionid */
    @Excel(name = "微信unionid")
    private String wxUnionid;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String avatar;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String eamil;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idcard;

    /** 登录IP */
    @Excel(name = "登录IP")
    private String loginIp;

    /** 登录终端类型(minapp小程序 app APP) */
    @Excel(name = "登录终端类型(minapp小程序 app APP)")
    private String loginType;

    /** 登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginTime;

    /** 上次登录IP */
    @Excel(name = "上次登录IP")
    private String lastLoginIp;

    /** 上次登录终端类型 */
    @Excel(name = "上次登录终端类型")
    private String lastLoginType;

    /** 上次登录终端时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次登录终端时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLoginTime;

    /** 登录次数 */
    @Excel(name = "登录次数")
    private Long loginNum;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String realname;

    /** 性别(0未知 1男 2女) */
    @Excel(name = "性别(0未知 1男 2女)")
    private Integer sex;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 积分 */
    @Excel(name = "积分")
    private BigDecimal integral;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date regTime;

    /** 删除状态(0未删除 1已删除) */
    private Integer delFlag;

    /** 数据状态(0正常 1停用) */
    @Excel(name = "数据状态(0正常 1停用)")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setWxClientOpenid(String wxClientOpenid) 
    {
        this.wxClientOpenid = wxClientOpenid;
    }

    public String getWxClientOpenid() 
    {
        return wxClientOpenid;
    }
    public void setWxmClientOpenid(String wxmClientOpenid) 
    {
        this.wxmClientOpenid = wxmClientOpenid;
    }

    public String getWxmClientOpenid() 
    {
        return wxmClientOpenid;
    }
    public void setWxmStaffOpenid(String wxmStaffOpenid) 
    {
        this.wxmStaffOpenid = wxmStaffOpenid;
    }

    public String getWxmStaffOpenid() 
    {
        return wxmStaffOpenid;
    }
    public void setWxUnionid(String wxUnionid) 
    {
        this.wxUnionid = wxUnionid;
    }

    public String getWxUnionid() 
    {
        return wxUnionid;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setEamil(String eamil) 
    {
        this.eamil = eamil;
    }

    public String getEamil() 
    {
        return eamil;
    }
    public void setIdcard(String idcard) 
    {
        this.idcard = idcard;
    }

    public String getIdcard() 
    {
        return idcard;
    }
    public void setLoginIp(String loginIp) 
    {
        this.loginIp = loginIp;
    }

    public String getLoginIp() 
    {
        return loginIp;
    }
    public void setLoginType(String loginType) 
    {
        this.loginType = loginType;
    }

    public String getLoginType() 
    {
        return loginType;
    }
    public void setLoginTime(Date loginTime) 
    {
        this.loginTime = loginTime;
    }

    public Date getLoginTime() 
    {
        return loginTime;
    }
    public void setLastLoginIp(String lastLoginIp) 
    {
        this.lastLoginIp = lastLoginIp;
    }

    public String getLastLoginIp() 
    {
        return lastLoginIp;
    }
    public void setLastLoginType(String lastLoginType) 
    {
        this.lastLoginType = lastLoginType;
    }

    public String getLastLoginType() 
    {
        return lastLoginType;
    }
    public void setLastLoginTime(Date lastLoginTime) 
    {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getLastLoginTime() 
    {
        return lastLoginTime;
    }
    public void setLoginNum(Long loginNum) 
    {
        this.loginNum = loginNum;
    }

    public Long getLoginNum() 
    {
        return loginNum;
    }
    public void setRealname(String realname) 
    {
        this.realname = realname;
    }

    public String getRealname() 
    {
        return realname;
    }
    public void setSex(Integer sex) 
    {
        this.sex = sex;
    }

    public Integer getSex() 
    {
        return sex;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setIntegral(BigDecimal integral) 
    {
        this.integral = integral;
    }

    public BigDecimal getIntegral() 
    {
        return integral;
    }
    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }
    public void setRegTime(Date regTime) 
    {
        this.regTime = regTime;
    }

    public Date getRegTime() 
    {
        return regTime;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("wxClientOpenid", getWxClientOpenid())
            .append("wxmClientOpenid", getWxmClientOpenid())
            .append("wxmStaffOpenid", getWxmStaffOpenid())
            .append("wxUnionid", getWxUnionid())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("nickname", getNickname())
            .append("avatar", getAvatar())
            .append("phone", getPhone())
            .append("eamil", getEamil())
            .append("idcard", getIdcard())
            .append("loginIp", getLoginIp())
            .append("loginType", getLoginType())
            .append("loginTime", getLoginTime())
            .append("lastLoginIp", getLastLoginIp())
            .append("lastLoginType", getLastLoginType())
            .append("lastLoginTime", getLastLoginTime())
            .append("loginNum", getLoginNum())
            .append("realname", getRealname())
            .append("sex", getSex())
            .append("birthday", getBirthday())
            .append("integral", getIntegral())
            .append("balance", getBalance())
            .append("regTime", getRegTime())
            .append("delFlag", getDelFlag())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .toString();
    }
}
